/**
 * fulihui.com Inc.
 * Copyright (c) 2015-2016 All Rights Reserved.
 */
package com.fulihui.integral.core.dal.repository.result;

/**
 * @author yunfeng.li
 * @version $Id: v 0.1 2017年04月13日 19:00 yunfeng.li Exp $
 */
public class TransactionResultBuilder {

    public static void buildSuc(TransactionResult result) {
        result.setSuccess(true);
    }

    public static void buildFail(TransactionResult result, int errorCode, String errorMsg) {
        result.setSuccess(false);
        result.setErrorCode(errorCode);
        result.setErrorMsg(errorMsg);
    }
}
